package com.twu.bibilioteca;

import org.junit.Before;
import org.junit.Test;

import static junit.framework.Assert.assertEquals;

/**
 * Created by IntelliJ IDEA.
 * User: dixithk
 * Date: 6/19/14
 * Time: 4:45 PM
 * To change this template use File | Settings | File Templates.
 */
public class ListAllBooksTest {


    UserInterfaceApp ui = new UserInterfaceApp() ;
    Library lib = new Library();
    ListAllBooks listAllBooks =new ListAllBooks(ui , lib);
    @Before
    public void load()
    {
        lib.loadBooks();
    }
    @Test
    public void ShouldCheckForListedBooksResult()
    {


        assertEquals(new Result("Listed Books" , true),listAllBooks.action());

    }

    @Test
    public  void ShouldCheckJobOfClass()
    {

        assertEquals("List of Books",listAllBooks.getName())    ;

    }
}
